function dataQueue(){
	var self = this;
	var Chunks  = [];
    var ChannelData = [];
    
    //audioBuffer interface end
    this.duration = 0;
    this.gain = 0;
    this.length = 0;
    this.numberOfChannels = 0;
    this.sampleRate = 0;
    this.getChannelData = function(channel){
    	return Chunks[0].getChannelData(channel)
    	return ChannelData[channel];
    };
    //audioBuffer interface end
    
    var buildChannelData = function(){
    	var result = [];
    	for(var c=0;c<self.numberOfChannels;c++){
    		if(ChannelData.length == 0){
    			//erster chunk
    			//nur rüberkopieren
    			result[c] = Chunks[0].getChannelData(c);	
    		}else{
    			//ChannelData + Chunks[Chunks.length-1]
    			var lenChan = ChannelData[c].length;
    			var lenChunk = Chunks[Chunks.length-1].length;
    			result[c] = new Float32Array(lenChan + lenChunk);
    			result[c].set(ChannelData[c], 0);
    			result[c].set(Chunks[Chunks.length-1].getChannelData(c), lenChan);
    			
    		}
    	}
    	ChannelData = result;
    };
    this.addChunk = function(audioBuffer){

    	this.duration += audioBuffer.duration;
    	this.gain = audioBuffer.gain;
    	
    	this.numberOfChannels = audioBuffer.numberOfChannels;
    	this.sampleRate = audioBuffer.sampleRate;
//    	console.log(["Duration: " + this.duration,"Length: " + this.length]); //Array mit Infos aus dem AudioBuffer, dev
    	
    	
    	if(Chunks.length == 0){
    		var ctx = new webkitAudioContext();
    		var audioBuffer2 = ctx.createBuffer(
    				audioBuffer.numberOfChannels, 
    				320*audioBuffer.sampleRate,
    				audioBuffer.sampleRate);
    		
    		audioBuffer2.getChannelData(0).set(audioBuffer.getChannelData(0) );
    		audioBuffer2.getChannelData(1).set(audioBuffer.getChannelData(1) );
    		Chunks.push(audioBuffer2);
    	}else{
    		console.log('add',this.length);
    		Chunks[0].getChannelData(0).set(audioBuffer.getChannelData(0), this.length );
    		Chunks[0].getChannelData(1).set(audioBuffer.getChannelData(1), this.length );
    	}
    	this.length += audioBuffer.length;
    	//buildChannelData();
    };
    this.rewind = function(){
    	this.offset = 0;
   	};
};
